﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudyCSharp
{
    class StringSplit
    {
#if !TEST
        static public string[] Get485Res(string log)
        {
            int index = log.IndexOf("recv buff:") + "recv buff:".Length;
            string subStr = log.Substring(index);
            index = subStr.IndexOf("\r\n");
            string res = subStr.Substring(0, index);
            return res.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
        }
#endif
}
}
